<template>
  <div class="text-sync">
    <button @click="add">增加count</button>
    <p>我们是{{ count }}个冠军</p>
  </div>
</template>

<script>
export default {
  name: 'jisuan',
  props: {
    count: {
      type: Number,
      default: 0
    }
  },
  data() {
    return {}
  },
  methods: {
    add() {
      this.$emit('update:count', this.count + 1)
    }
  },
  components: {}
}
</script>

<style scoped lang="less"></style>
